﻿<navigation:Page x:Class="RM.WebClient.QuestionBank" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="640" d:DesignHeight="480"
           xmlns:input="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input" 
           xmlns:datagrid="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" 
           xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input" 
           Title="Question Bank">
    <Grid x:Name="gridQuestionList" Width="1000">
        <Grid.RowDefinitions>
            <RowDefinition Height="0.087*"/>
            <RowDefinition Height="0.913*"/>
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" Margin="10,0,0,0">
            <dataInput:Label x:Name="lblNameSearch" Height="31" HorizontalAlignment="Left" Margin="20,3,0,2" VerticalAlignment="Center" Width="78" Content="Enter Name"/>
            <input:AutoCompleteBox x:Name="autoCompleteNameSearch" Height="22" Width="125" TextChanged="autoCompleteQuestionSearch_TextChanged" IsTextCompletionEnabled="True"/>
            <Image x:Name="imgAddQuestion" Width="100" Source="add_user.png" Tag="" Cursor="Hand" ToolTipService.ToolTip="" MouseLeftButtonUp="imgAddQuestion_MouseLeftButtonUp" Stretch="None"/>
            <HyperlinkButton x:Name="linkCandidateDetails" Margin="-28,10,0,12" Width="130" Foreground="#FF092084" Content="Add New Question" FontWeight="Bold" Click="Link_QuestionDetail_Click" VerticalAlignment="Center"/>
        </StackPanel>
        <datagrid:DataGrid x:Name="dataGrid" ItemsSource="{Binding}" VerticalAlignment="Top" Height="487" 
                           Margin="20,4,0,0" MinColumnWidth="10" Grid.Row="1" 
                           ScrollViewer.HorizontalScrollBarVisibility="Auto"  AutoGenerateColumns="False"
                           ScrollViewer.VerticalScrollBarVisibility="Auto" IsReadOnly="True">
            <datagrid:DataGrid.Columns>
                <datagrid:DataGridTextColumn Binding="{Binding Name}" Header="Name"></datagrid:DataGridTextColumn>
                <datagrid:DataGridTextColumn Binding="{Binding Experience}" Header="Experience"></datagrid:DataGridTextColumn>
                <datagrid:DataGridTextColumn Binding="{Binding Language}" Header="Language"></datagrid:DataGridTextColumn>
                <datagrid:DataGridTextColumn Binding="{Binding Technology}" Header="Technology"></datagrid:DataGridTextColumn>
                <datagrid:DataGridTemplateColumn Header="Edit">
                    <datagrid:DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Image Source="RMS_Images/Edit.png" Cursor="Hand" Width="20" Height="20" MouseLeftButtonUp="Edit_MouseUp"></Image>
                        </DataTemplate>
                    </datagrid:DataGridTemplateColumn.CellTemplate>
                </datagrid:DataGridTemplateColumn>
            </datagrid:DataGrid.Columns>
            <!--<datagrid:DataGrid.RowDetailsTemplate>
                <DataTemplate>
                    <StackPanel Background="LightBlue">
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="This item has details." />
                        </StackPanel>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{Binding FirstName}" />
                            <TextBlock Text=" " />
                            <TextBlock Text="{Binding LastName}" />
                        </StackPanel>
                    </StackPanel>
                </DataTemplate>
            </datagrid:DataGrid.RowDetailsTemplate>-->
        </datagrid:DataGrid>
        <ProgressBar x:Name="progressBar" Height="20" Margin="366,183,366,0" VerticalAlignment="Top" Grid.Row="1" IsIndeterminate="True"/>
        <dataInput:Label x:Name="lblWait" Height="36" Margin="366,135,366,0" VerticalAlignment="Top" Grid.Row="1" Content="Loading data..Please wait..." FontSize="13.333"/>
    </Grid>
</navigation:Page>
